<template>
  <div class="score-board">
    <div class="score">
      <div class="score-label">得分</div>
      <div class="score-value">{{ score }}</div>
    </div>
    <div class="high-score">
      <div class="high-score-label">最高分</div>
      <div class="high-score-value">{{ highScore }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ScoreBoard',
  props: {
    score: {
      type: Number,
      required: true
    },
    highScore: {
      type: Number,
      required: true
    },
    gameState: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped>
.score-board {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.score, .high-score {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  min-width: 80px;
}

.score-label, .high-score-label {
  font-size: 14px;
  margin-bottom: 5px;
}

.score-value, .high-score-value {
  font-size: 24px;
  font-weight: bold;
}

.score-value {
  color: #FFD700;
}

.high-score-value {
  color: #4CAF50;
}
</style>